//
//  ExamSignUpTableViewCellSecond.h
//  CommunityNannyO2O
//
//  Created by apple on 15/8/13.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import "ExamSignUpTableViewCellSecond.h"
#import "APIAdress.h"
#import "MBProgressHUD+YC.h"
#import "MJExtension.h"
#import "AccountTool.h"
#import "UIViewController+Create.h"
#import "CustomTextField.h"
#import "AppConfig.h"
#import "QXNetWorkTool.h"
#import "CommFunc.h"

@interface ExamSignUpTableViewCellSecond()<QXNetWorkToolDelegate>

@end

@implementation ExamSignUpTableViewCellSecond

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"ExamSignUpTableViewCellSecond";
    ExamSignUpTableViewCellSecond *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:nil options:nil]firstObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
}

-(void)awakeFromNib
{
    
}

-(int)getHeight
{
    int height = [CommFunc sizeWithString:self.adress.text
                                     font:[UIFont fontWithName:@"Hiragino Sans GB" size:15]
                                      max:CGSizeMake(self.adress.frame.size.width, MAXFLOAT)].height;
    
    if (height <= 0)
        return 76;
    else
    {
        height = 16 + self.adress.frame.origin.y + height + 18;
        return height;
    }
    
    return 0;
}


@end




















